package com.infra.micro.id.domain.service;


import com.infra.common.resp.PageEx;
import com.infra.common.resp.Response;
import com.infra.micro.id.domain.entity.IdWorkerPO;
import com.infra.micro.id.model.req.QueryIdWorkerByCondReq;

import java.util.Set;

public interface IdWorkerService {
    Long getId(Integer appId, String secretKey);

    Set<Long> getIds(Integer appId, int step, String secretKey);

    IdWorkerPO initWorkerServer();

    int updateMaxTimestamp(int workerId);

    Response<PageEx<IdWorkerPO, QueryIdWorkerByCondReq>> queryByPage(QueryIdWorkerByCondReq req);
}
